/*
** init_tab.c for my_printf in /home/nadali_t//local/svn/tek2ed/my_printf
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Sun Nov 18 16:32:51 2012 thomas nadalie
** Last update Sun Nov 18 18:03:32 2012 thomas nadalie
*/

#include	"my.h"

void		init_functab(void (**functab)(va_list))
{
  functab[0] = &opt_d;
  functab[1] = &opt_s;
  functab[2] = &opt_o;
  functab[3] = &opt_u;
  functab[4] = &opt_x;
  functab[5] = &opt_xx;
  functab[6] = &opt_percent;
  functab[7] = &opt_c;
  functab[8] = &opt_b;
  functab[9] = '\0';
}

void		init_flagtab(char *tab)
{
  tab[0] = 'd';
  tab[1] = 's';
  tab[2] = 'o';
  tab[3] = 'u';
  tab[4] = 'x';
  tab[5] = 'X';
  tab[6] = '%';
  tab[7] = 'c';
  tab[8] = 'b';
  tab[9] = '\0';
}
